package com.spboot.mapper;

import com.spboot.entity.User;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author guocb
 * @since 2019-12-25
 */
public interface UserMapper extends BaseMapper<User> {
	//自定义分页
	IPage<User> selectPageUser(IPage<User> page,@Param("ew") Wrapper<User> paramWrapper);

	/**
	 * 查询用户权限code
	 * @param userCode
	 * @return
	 */
	List<String> selectUserPermission(String userCode);
}
